package com.hsmw.api.service;

import com.hsmw.api.mapper.HsmwConcreteInfoMapper;
import com.hsmw.api.mapper.HsmwConcreteOperateRecordMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwConcreteInfo;
import com.hsmw.domain.HsmwConcreteOperateRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwConcreteInfoService  extends BaseService<HsmwConcreteInfoMapper, HsmwConcreteInfo> {

    @Autowired
    HsmwConcreteInfoMapper hsmwConcreteInfoMapper;

    public void removeUnusedConcreteInfo(String orderId) {
        hsmwConcreteInfoMapper.removeUnusedConcreteInfo(orderId);

    }
}
